@themeColor: red;
@import "../信息详情/css/base.css";
@import "../../../css/bass.css";
@import "//at.alicdn.com/t/font_2628658_avkowx9zqn.css";

.nav-bar {
  min-width: 1205px;
  height: 140px;
  background-color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;

  padding-top: 30px;

  .content {
    //background-color: tomato;
    height: 100%;
    display: flex;
    flex-direction: column;

    .top {
      //background-color: darkcyan;
      flex: 1;
      display: flex;

      > .left {
        flex: 1;

        h1 {
          width: 193px;
          height: 65px;
          //background-color: cyan;
          a {
            width: 100%;
            height: 100%;
            display: block;
            //background-color: pink;
            //text-indent: -9999px;
            font-size: 0;
            background-image: url(../../../components/image/img.png);
            background-size: contain;
            background-repeat: no-repeat;
          }
        }
      }

      > .center {

        flex: 2;
        display: flex;
        justify-content: flex-end;

        .search-bar {
          width: 400px;
          height: 40px;
          //background-color: cyan;
          //margin: 0 auto;
          border: 1px solid #999;
          border-radius: 20px;
          box-sizing: border-box;

          display: flex;

          .category {
            background-color: deeppink;
            flex: 1;
            border-top-left-radius: 20px;
            border-bottom-left-radius: 20px;
            overflow: hidden;

            label {
              select {
                width: 100%;
                height: 100%;
                border: none;
                padding-left: 10px;
                font-size: 15px;
                color: #666;
                outline: none;
              }
            }
          }

          .keyword {
            background-color: pink;
            flex: 4;

            input {
              width: 100%;
              height: 100%;
              box-sizing: border-box;
              border: none;
              outline: none;
              padding-left: 10px;
            }
          }

          .search-btn {
            background-color: cyan;
            flex: 1;
            border-top-right-radius: 20px;
            border-bottom-right-radius: 20px;
            overflow: hidden;

            input {
              width: 100%;
              height: 100%;
              border: none;
              outline: none;
              background-color: green;

              color: #fff;
              font-size: 14px;
            }
          }

        }

      }

      //>.right {
      //  background-color: greenyellow;
      //  flex: 1;
      //}
    }

    .bottom {
      height: 40px;
      display: flex;

      .left {
        flex: 1;
        //background-color: cyan;
        .menu-bar {
          width: 100%;
          height: 100%;
          //background-color: darkcyan;
          display: flex;

          li {
            //background-color: grey;
            //border: 1px solid red;
            padding: 0 20px;
            line-height: 30px;
            font-size: 18px;
            position: relative;

            a {
              color: #333;
              text-decoration: none;
            }

            &.active,
            &:hover {
              a {
                color: red;
              }

              //border-bottom: 5px solid red;
              &::after {
                content: "";
                display: block;
                width: 50%;
                height: 5px;
                background-color: red;
                //margin: 0 auto;
                position: absolute;
                bottom: 0;
                left: 50%;
                transform: translateX(-50%);
              }
            }
          }
        }
      }

      .right {
        flex: 1;
        //background-color: purple;
        ul {
          height: 100%;
          display: flex;
          justify-content: flex-end;

          li {
            //background-color: cyan;
            padding: 0 20px;
            line-height: 40px;
            font-size: 16px;
            color: #666;
            position: relative;

            &:hover {
              .detail-pane {
                display: block;
              }
            }

            .detail-pane {
              width: 240px;
              height: 220px;
              background-color: #fff;
              position: absolute;
              padding-top: 10px;
              top: 50px;
              left: 50%;
              transform: translateX(-50%);
              border-radius: 10px;
              box-shadow: -1px 2px 5px 5px #ccc;
              display: none;
              text-align: center;

              .title {
                line-height: 26px;
                font-size: 14px;
                color: #333;
              }

              .intro {
                line-height: 24px;
                font-size: 12px;
                color: #666;
              }

              .qr_code {
                margin-top: 10px;
                width: 145px;
                height: 145px;
              }

              &::after {
                content: "";
                border: 10px solid transparent;
                border-bottom-color: #fff;
                position: absolute;
                top: -20px;
                left: 50%;
                transform: translateX(-50%);
                //box-shadow: -1px 2px 5px 5px #ccc;
              }
            }
          }
        }
      }
    }
  }
}

body {
  background-color: rgb(245, 245, 245);
}

.teacher-intro {
  min-width: 1205px;
  height: 190px;
  background-color: #b30000;
  background-position: top center;
  .content {
    height: 100%;
    //background-color: darkcyan;
    display: flex;
    align-items: center;
    .t-header {
      width: 90px;
      height: 90px;
      border: 4px solid hsla(0,0%,98%,.6);
      box-shadow: 0 1px 3px #999;
      margin-right: 20px;
    }
    .intro-pane {
      height: 90px;
      //background-color: cyan;
      display: flex;
      flex-direction: column;
      justify-content: space-evenly;
      .t-position-name {
        font-size: 20px;
        color: #fff;
        &.is-star::after {
          content: "";
          width: 18px;
          height: 14px;
          //background-color: red;
          display: inline-block;
          //background-image: url(../../assets/images/star.png);
          background-position: 0 0;
          margin-left: 10px;
        }
      }
      .desc {
        font-size: 14px;
        color: #fff;
      }
    }
  }
}

.section-notice {
  height: 60px;
  background-color: #fff;
  .content {
    height: 100%;
    .menus {
      //background-color: tomato;
      height: 100%;
      display: flex;
      li {
        //background-color: cyan;
        //padding: 0 20px;
        position: relative;
        &.current,
        &:hover {
          a {
            color: @themeColor;
          }
          &::after {
            content: "";
            display: block;
            width: ~"calc(100% - 40px)";
            height: 5px;
            background-color: @themeColor;
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
          }
        }

        a {
          //width: 100%;
          height: 100%;
          line-height: 60px;
          //background-color: red;
          display: block;
          padding: 0 20px;
          font-size: 18px;
          color: #fff;

        }
      }
    }
  }
}

.course-list {
  padding-top: 30px;
  min-height: 400px;
  display: flex;
  flex-wrap: wrap;
  //justify-content: space-between;

  // 课程卡片
  .course-card {
    min-width: 200px;
    max-width: 300px;
    height: 252px;
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    transition: all 1s linear 0s;
    &:hover {
      box-shadow: 1px 8px 10px 4px grey;
      transform: translateY(-20px);
    }
    &>.image {
      width: 100%;
      height: 130px;
      background-color: darkcyan;

      position: relative;
      &>a {
        width: 100%;
        height: 100%;
        display: block;
        background-color: palegreen;
        overflow: hidden;
        &>img {
          width: 100%;
          height: 100%;

          transition: all 2s ease-in-out 0s;
          &:hover {
            transform: scale(1.5, 1.5);
          }
        }
      }
      &>.tag {
        width: 48px;
        height: 23px;
        /*background-color: cyan;*/
        background-image: url(../pic/star_back.png);
        background-position: -16px -57px;

        font-size: 12px;
        color: #fff;
        text-align: center;
        line-height: 23px;
        position: absolute;
        top: 5px;
        left: 0;
        z-index: 999;
      }
    }
    &>.title {
      flex: 2;
      padding-left: 10px;
      /*padding-top: 10px;*/
      /*box-sizing: border-box;*/
      /*background-color: pink;*/
      &>a {
        display: block;
        font-size: 14px;
        color: #333;
        text-decoration: none;
        margin-top: 10px;
        &:hover {
          color: tomato;
        }
      }
    }
    &>.score {
      flex: 1;
      /*background-color: green;*/
      display: flex;
      align-items: center;
      padding-left: 10px;
      &>.star {
        width: 57px;
        height: 10px;
        background-image: url(../pic/star_back.png);
        background-position: -91px -58px;
        &>.y_star {
          height: 100%;
          background-image: url(../pic/star_back.png);
          background-position: -10px -158px;
        }
      }
      &>.score_text {
        font-size: 12px;
        color: #777986;
        margin-left: 10px;
      }
    }
    &>.zan {
      flex: 1;
      padding-left: 10px;
      &>.good {
        font-size: 16px;
        color: #777986;
        &::before {
          margin-right: 5px;
          color: tomato;
        }
      }
    }
  }

  // 讲师卡片
  .teacher-card {
    background-color: #fff;
    margin-top: 30px;
    min-width: 300px;
    height: 150px;
    box-shadow: 2px -1px 10px 0 rgba(0,0,0,.15);
    //background-color: tomato;
    display: flex;
    .left {
      width: 200px;
      //background-color: darkcyan;
      position: relative;
      .t-header {
        width: 150px;
        height: 150px;
        border-radius: 75px;
        box-shadow: 2px -1px 10px 0 rgba(0,0,0,.15);
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: -30px;
        &:hover {
          animation: like-rotate 6s linear 0s infinite;
        }
      }
      .t-name {
        width: 150px;
        line-height: 34px;
        border-radius: 17px;
        background-color: @themeColor;
        color: #fff;
        font-size: 18px;
        text-align: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 20px;
      }
    }
    .right {
      flex: 1;
      //background-color: deeppink;
      padding: 5px;
      .t-position {
        text-align: center;
        font-size: 20px;
        line-height: 40px;
        color: @themeColor;
        font-weight: 700;
        border-bottom: 2px solid @themeColor;
      }
      .t-intro {
        padding-top: 10px;
        font-size: 16px;
        color: #666;
        letter-spacing: 2px;
      }
    }
  }

  // 新闻卡片
  .news-card {
    width: 500px;
    //height: 100px;
    background-color: #fff;
    box-shadow: 2px -1px 10px 0 rgba(0,0,0,.15);
    ul {
      padding: 5px 10px;
      li {
        line-height: 36px;
        display: flex;
        justify-content: space-between;
        a {
          color: #333;
          font-size: 15px;
          white-space: nowrap;
          text-overflow: ellipsis;
          overflow: hidden;
          &:hover {
            color: @themeColor;
          }
        }
        span {
          margin-left: 15px;
          min-width: 190px;
          font-size: 15px;
          color: #999;
        }
      }
    }
  }

  //  额外定义一些特定的类名, 给使用组件容器的开发人员来使用
  // 类名 -> 各个卡片组件上面
  // 自动的给他分配空间, 以及调整间距
  .column5 {
    width: ~"calc((100% - 4 * 30px) / 5)";
    margin-bottom: 30px;

    &:not(:nth-child(5n+1)) {
      margin-left: 30px;
    }
  }

  .column3 {
    width: ~"calc((100% - 2 * 30px) / 3)";
    margin-bottom: 30px;

    &:not(:nth-child(3n+1)) {
      margin-left: 30px;
    }
  }

  .column2 {
    width: ~"calc((100% - 1 * 30px) / 2)";
    margin-bottom: 30px;

    &:not(:nth-child(2n+1)) {
      margin-left: 30px;
    }
  }


}

.subscript {
  height: 200px;
  margin-top: 15px;

  .content {
    height: 90%;
    background-color: white;
    display: flex;

    .item {
      flex: 1;
      position: relative;

      &:not(:first-child) {
        display: flex;
        flex-direction: column;
        justify-content: center;
      }

      &:not(:last-child):after {
        content: "";
        width: 1px;
        height: 80%;
        background-color: darkgray;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
      }

      .logo {
        width: 275px;
        height: 55px;
        opacity: 1;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        margin-top: 40PX;
        margin-left: 50px;
      }
    }

    .title {
      display: block;
      color: #333333;
      text-decoration: none;
      margin-left: 15px;
      font-size: 18px;
      margin-top: 10px;
    }

    .subtitle {
      font-size: 18px;
      display: block;
      color: #333333;
      text-decoration: none;
      margin-left: 15px;
    }

    .ewm {
      width: 130px;
      height: 130px;
      opacity: 1;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      margin-top: 20PX;
      margin-left: 80px;

    }

    p {
      font-size: 15px;
      margin-left: 90px;
      color: #333333;
    }
  }

  .mask {
    width: 100px;
    height: 100px;
    right: 20px;
    bottom: 20px;
    background-color: rgba(0, 0, 0, .6);
    position: fixed;

    //display: none;
    opacity: 0;
    transition: all 500ms linear;

    &.show {
      //display: block;
      opacity: 1;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;
    }

    .pane {
      width: 300px;
      height: 300px;
      background-color: white;
      margin: 150px auto;
      padding: 15px;
      position: relative;

      img {
        width: 100%;
        height: 100%;
      }

      .close {
        width: 20px;
        height: 20px;
        font-size: 26px;
        position: absolute;
        color: #fff;
        top: 0;
        right: 0;
      }
    }
  }
}

